# coding: utf-8
from application import db


class Mall(db.Model):
    __tablename__ = 'mall'

    id = db.Column(db.Integer, primary_key=True)
    g_id = db.Column(db.Integer, nullable=False, info='道具ID')
    g_num = db.Column(db.BigInteger, nullable=False, info='数量')
    created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
    updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
    title = db.Column(db.String(255), nullable=False)
    cal_cash = db.Column(db.BigInteger, nullable=False, info='建议价格')
    real_cash = db.Column(db.BigInteger, nullable=False, info='实际价格')
    buy_num = db.Column(db.Integer, nullable=False, info='限制购买个数，0不限制')
    is_delete = db.Column(db.Integer, nullable=False, info='是否删除')
